#!/bin/bash

java_bin="/opt/jdk1.7.0_80/bin/java"
file_jar="TCService.jar"
file_config="config/start.prop"
file_nohup="nohup.out"

ps -ef|grep ${file_jar}|grep ${file_config} |awk '{print $2}'|xargs kill -9
sleep 2s
nohup ${java_bin} -jar ${file_jar} ${file_config} >${file_nohup} &
sleep 1s
echo "start ok"
